package com.aaa.ps.dao;

import com.aaa.common.entity.Role;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    /**
     * 根据角色ID批量删除角色菜单关联表
     * @param roleId
     * @return
     */
    int deleteRoleMenuByRoleId(int roleId);

    /**
     * 批量添加角色权限关联表
     * @param values
     * @return
     */
    int batchInsertRoleMenu(String values);
}